{include file="public/header" /}

<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>{$Think.lang.ds_affichetype}</h3>
                <h5></h5>
            </div>
            {include file="public/admin_items" /}
        </div>
    </div>

    <table class="ds-default-table">
        <thead>
        <tr class="thead">
            <th class="w48">{$Think.lang.ds_sort}</th>
            <th>{$Think.lang.affiche_type_index_name}</th>
            <th>{$Think.lang.ds_created_at}</th>
            <th class="w120 align-center">{$Think.lang.ds_handle}</th>
        </tr>
        </thead>
        <tbody id="treet1">
        {notempty name="list"}
            {foreach name="list" item="v"}
            <tr class="hover edit" id="ds_row_{$v.id}">
                <td class="sort">{$v.id}</td>
                <td>{$v.name}</td>
                <td>{$v.created_at}</td>
                <td class="align-center">
                    <a href="javascript:dsLayerOpen('{:url('Affichetype/edit',['id'=>$v.id])}','{$Think.lang.ds_edit}-{$v.name}')"
                       class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.ds_edit}</a>

                    <a href="javascript:dsLayerConfirm('{:url('Affichetype/cancels',['id'=>$v.id])}','{$Think.lang.affiche_type_ensure_del}',{$v.id});"
                       class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a>
                </td>
            </tr>
            {/foreach}
        {else /}
            <tr class="no_data">
                <td colspan="10">{$Think.lang.ds_no_record}</td>
            </tr>
        {/notempty}
        </tbody>
    </table>
    {$show_page}
</div>